package com.lee.api.client;

import com.lee.common.model.AppResult;
import com.lee.common.model.Board;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "board-service", path = "/board")
public interface BoardClient {
    @GetMapping("/topList")
    public AppResult<List<Board>> topList();

    @GetMapping("/getById")
    public AppResult<Board> getById(@RequestParam("id") Long id);

    Board selectById(Long valueOf);

    void addOneArticleCountById(Long id);

    void subOneArticleCountById(Long boarId);
}
